

export default {

    namespace: 'historymodel',
  
    state: {
      history: [],
      count: 0,
    },
  
    subscriptions: {
      setup({dispatch, history}) {  // eslint-disable-line
      },
    },
  
    effects: {
      *
          fetch({payload}, {call, put}) {  // eslint-disable-line
            yield put({type: 'save'});
          },
    },
  
    reducers: {
      save(state, action) {
        return {...state, ...action};
      },
    },
  
  };
  